home *** CD-ROM | disk | FTP | other *** search
- property ancestor, MinXLoc
- global gDBPictObjList
-
- on new me, buttonName, castName, xSprite, xLoc, descendant
- ancestor = new(script("generic Button"), buttonName, castName, xSprite, xLoc, me)
- MinXLoc = getAt(xLoc, 1)
- return me
- end
-
- on performFunction me
- tell the stage
- playSFX(5)
- end tell
- MyObj = getaProp(gDBPictObjList, GetObjProp())
- xMember = GetPictMember(MyObj)
- put xMember
- fExtension = GetArtExtension()
- mFileName = member(xMember).name & fExtension
- cFileName = member(xMember).name & "_cap" & fExtension
- myPath = getSourcePath(1)
- msFileName = myPath & mFileName
- myPath = getSourcePath(0)
- csFileName = myPath & cFileName
- destPath = GetSavePathandName(mFileName)
- put CopyFile(msFileName, destPath)
- if sendSprite(15, #getStatus) then
- destPath = GetSavePathandName(cFileName)
- put CopyFile(csFileName, destPath)
- end if
- return me
- end
-
- on getSourcePath isMap
- if isMap then
- sPath = "map"
- else
- sPath = "cap"
- end if
- if the machineType = 256 then
- return "..\MEDIA\Maps\win\" & sPath & "\"
- else
- return the moviePath & ":MEDIA:Maps:mac:" & sPath & ":"
- end if
- end
-
- on buttonLoc me, size
- set the locH of sprite the pChannel of me to getAt([MinXLoc, 613], size)
- return me
- end
-